package com.wangjiang.mario.admin.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 角色菜单关联表
 *
 * @author wangjiang
 * @Date 2019-08-09 14:35:19
 */
@Data
@TableName(value = "mario_role_menu")
@ApiModel(value = "角色菜单关联表")
public class RoleMenuEntity {
    // 菜单类型
    public static final String PERM_MENU = "perm";
    public static final String MENU_MENU = "menu";

    @TableField(value = "role_code")
    @ApiModelProperty(value = "角色编码")
    private String roleCode;

    @TableField(value = "menu_code")
    @ApiModelProperty(value = "菜单编码")
    private String menuCode;

    @TableField(exist = false)
    @ApiModelProperty(value = "菜单类型")
    private String menuType;

}
